package com.smartfactory.sail.vo.order;

import com.baomidou.mybatisplus.annotation.TableField;
import com.smartfactory.sail.entity.enums.ContractTypeEnum;
import com.smartfactory.sail.entity.enums.OrderItemTypeEnum;
import com.smartfactory.sail.entity.enums.OrderModelEnum;
import com.smartfactory.sail.entity.enums.OrderStatusEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author 王巨壁
 * @title: ListOrderListResp
 * @projectName smart-sail
 * @description: 合同订单列表返回对象
 * @date 2019/8/818:27
 */
@Data
public class ListHTOrderListResp {

    @ApiModelProperty(value = "序号")
    private Long id;

    @ApiModelProperty(value = "订单号")
    private String orderCode;

    //外部 cust
    @ApiModelProperty(value = "企业名称")
    private String enterpriseName;

    @ApiModelProperty(value = "下单时间")
    private String createTime;

    @ApiModelProperty(value = "交货日期")
    private String deliveryDate;

    //外部 contract
    @ApiModelProperty(value = "合同类型1普通2加急")
    private ContractTypeEnum contractType;

    @ApiModelProperty(value = "订单类型1样品订单2合同订单")
    private OrderItemTypeEnum orderType;

    @ApiModelProperty(value = "订单状态具体状态参考constants表样品订单必须包含客户是否认可状态")
    private OrderStatusEnum status;

    //------------以下暂时不用---------------------------------------------------------------

    @ApiModelProperty(value = "订单模式1.生产订单2修磨订单3外包订单4混合订单具体参考constants表")
    @TableField("orderMode")
    private OrderModelEnum orderMode;

    @ApiModelProperty(value = "如果是合同订单这个字段必填合同id")
    private Long contractId;

    @ApiModelProperty(value = "客户id可能为空,样品订单无需客户")
    @TableField("custId")
    private Long custId;

    @ApiModelProperty(value = "订单进度")
    private Integer progress;

    @ApiModelProperty(value = "下单人id对应userid")
    private Integer underOrderId;

    @ApiModelProperty(value = "创建人")
    private String createUser;

    @ApiModelProperty(value = "修改人")
    private String updateUser;

    @ApiModelProperty(value = "更新时间yyyy-MM-dd HH:mm:ss")
    private String updateTime;

}
